<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>拍医拍 - 专家为你解读化验单</title>
<meta name="description" content=" 能将异常指标快速解读出来，还能给出健康建议，不错，推荐给有需要的人。。 " /> 
<meta name=”viewpoint” content=”width=device-width,initial-scale=1”>
<link href="/css/download.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery/1.9.1.min.js"></script>
<script>
/*    function goAndroidDownloadUrl(){                                                                                                                                              
    $.getJSON('/app_index/down?source=<?=$tSource?>',function(obj){
        window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.paiyipai"
    });
    }

goAndroidDownloadUrl();
 */
</script>
</head>

<body>
<div style="display:none;" ><img src="/images/logo300.jpg" /></div>
<div class="wx-tip wx-tip-an">
    <h3 style="font-size:60px;">亲 请用浏览器打开下载~</h3>
    <p>1、点击右上角的<img class="menu" src="/images/app/more_btn_an.png" alt=""></p>
    <p>2、选择：“在浏览器打开” 即可下载！</p>
    <img class="arrow" src="/images/app/jiantou_pic1.png" alt="">
</div>

<div style='clear:both'></div>
<div id="header_mob">
    <img src="/images/app/logo_icon.png" class='icon'  width='300px'/>
    <span class='title'>拍医拍</span>
    <span class='desc'>专家为你解读化验单</span>
    <a href='#' class='btn btn_android xiazai'><span>立即下载</span></a>     
    <a href='#' class='btn btn_ios xianzai'><img src='/images/app/ios.png' style="vertical-align:text-bottom;margin-right:10px;width:60px"/><span>IOS 下载</span></a>
</div>

<script>
    function isWeixinBrowser(){
        var ua = navigator.userAgent.toLowerCase();
        return (/micromessenger/.test(ua)) ? true : false ;
    }
    function isAndroid() {
        var ua = navigator.userAgent.toLowerCase();
        return (/android/.test(ua)) ? true : false ;
    }
    function isIos() {
        var ua = navigator.userAgent.toLowerCase();
        return (/(iphone|ipod|ipad)/.test(ua)) ? true : false ;
    }

    function goAndroidDownloadUrl(){
        $.getJSON('/app_index/down?source=<?=$tSource?>',function(obj){
            window.location.href= "http://download.91paiyipai.com/pyp_android.1.6.0.apk"+ location.search
        });
    }
    if(!isWeixinBrowser()){
        try{
            setTimeout(function(){
                if(isIos()){
                    window.location.href = "https://itunes.apple.com/us/app/pai-chu-fang/"
                }else if(isAndroid()){
                    goAndroidDownloadUrl()
                }

            },500)
            
        }catch(e) {
        }
    }

    $(function(){
        if(isWeixinBrowser()){
            if(isIos()){
                $(".xiazai").click(function(e){
                    e.preventDefault()
                    $(".wx-tip-an").show()
                })
            }else if(isAndroid()){
                $(".xiazai").click(function(e){
                    e.preventDefault()
                    $(".wx-tip-an").show()

                })
            }
        }else{
            if(isIos()){
                $(".xiazai").click(function(e){
                    try{

                        //window.location.href= "http://download.91paiyipai.com/pyp_android_1.1.0.apk"+ location.search
                        window.location.href = "https://itunes.apple.com/cn/app/pai-yi-pai/id963426869?mt=8"
                    }catch(e){

                    }
                })
            }else {
                $(".xiazai").click(function(){
                    try {
                        goAndroidDownloadUrl()
                    }catch(e){
                        alert(e)
                    }
                })
            }
        }

       $(".xiazai").click(function(){
            goAndroidDownloadUrl();
        });
    })
</script>
</body>
</html>

